<title>轮播</title>

<div class="layui-card layadmin-header">
    <div class="layui-breadcrumb" lay-filter="breadcrumb">
        <a lay-href="">主页</a>
        <a><cite>系统管理</cite></a>
        <a><cite>管理用户</cite></a>
    </div>
</div>

<style>
    .layui-table-cell{
        height: auto;
    }
    /*
    .layui-table-cell span{
        display: block;
    }
    .layui-table-cell img{
        width: 50px;
        margin-top: 20px;
    }
     */
</style>

<div class="layui-fluid" id="LAY-demo-carousel">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-form layui-card-header layuiadmin-card-header-auto" lay-filter="app-header-search">
                    <div class="layui-form-item">

                        <div class="layui-inline">
                            <label class="layui-form-label">搜索类型</label>
                            <div class="layui-input-inline">
                                <select name="search[type]" lay-verify="required">
                                    <option value="">请选择类型</option>
                                    <option value="mobile">手机号</option>
                                    <option value="nickname">名称</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <div class="layui-input-inline">
                                <input type="text" name="search[content]" placeholder="请输入" autocomplete="off" lay-verify="required" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <button class="layui-btn layuiadmin-btn-list" lay-submit lay-filter="table-search-button">
                                <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                            </button>
                        </div>
                    </div>
                </div>

                <div class="layui-card-body">
                    <table id="LAY-users-user-list" lay-filter="LAY-users-user-list"></table>
                    <script type="text/html" id="table-user">
                        <div class="layui-col-md4">
                            <img src="{{ d.icon }}">
                        </div>
                        <div class="layui-col-md8">
                            <span>ID： {{d.id}}</span>
                            <span>帐号： {{d.mobile}}</span>
                            <span>名称： {{d.nickname}}</span>
                        </div>
                    </script>
                    <template type="text/html" id="table-icon">
                        <img src="{{ d.icon }}" width="60">
                    </template>
                    <script type="text/html" id="table-status">
                        {{# if(d.status){ }}
                        <a class="layui-btn layui-btn-normal layui-btn-xs">正常</a>
                        {{# }else{ }}
                        <a class="layui-btn layui-btn-danger layui-btn-xs">禁用</a>
                        {{# } }}
                    </script>
                    <script type="text/html" id="table-switch">
                        <input type="checkbox" name="sex" lay-skin="switch" lay-text="显示|隐藏" lay-filter="table-status"
                               value="{{ d.show }}" data-json="{{ encodeURIComponent(JSON.stringify(d)) }}" {{ !d.show || 'checked' }}>
                    </script>
                    <script type="text/html" id="app-banner-oper">
                        {{# if(d.status){ }}
                        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="block"><i class="layui-icon layui-icon-delete"></i>拉黑</a>
                        {{# }else{ }}
                        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="cancel"><i class="layui-icon layui-icon-edit"></i>取消</a>
                        {{# } }}
                    </script>
                </div>
            </div>
        </div>

    </div>
</div>

<script>
    layui.use('users',layui.factory('users')).use(['users', 'form'], function(){
        var $ = layui.$
            ,users = layui.users;

    });
</script>
